package yartiss.engine.simulation.scheduling.policies.dp;

import yartiss.engine.simulation.scheduling.policies.fp.EHPFP1SchedulingPolicy;
import yartiss.engine.simulation.system.ITaskSet;
import yartiss.engine.simulation.system.taskset.TaskSetFactory;


/**
 * Preemptive Dynamic Priority. When there is not enough energy, the system is
 * paused for x time unit (even if it results in missing a deadline)
 */
public class EHPDP1SchedulingPolicy extends EHPFP1SchedulingPolicy {

	
	@Override
	public String getPolicyName() {
		return "EH_PDP_1";
	}


	/**
	 * 
	 */
	@Override
	public ITaskSet createTaskSet() {
		return TaskSetFactory.getNewInstance("deadline");
	}

}
